package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.CustomerReturnList;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface CustomerReturnListGoodsService {
    //客户退货单保存
    void save(CustomerReturnList customerReturnList, String customerReturnListGoodsStr, HttpSession session);

    //客户退货单查询（可查询条件：退货单号、客户、退款状态）
    Map<String, Object> list(String returnNumber, Integer customerId, Integer state, String sTime, String eTime);

    //退货单商品信息  Integer customerReturnListId
    Map<String, Object> goodsList(Integer customerReturnListId);

    //删除退货单 Integer customerReturnListId
    void delete(Integer customerReturnListId);

    //支付结算（修改客户退货单退款状态） Integer customerReturnListId
    ServiceVO updateState(Integer customerReturnListId);

    //客户退货统计（可根据 商品类别、商品编码或名称 条件查询）
    String count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
}
